package com.blog.cloud.api.dto;

import com.blog.cloud.api.entity.User;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Set;

@Getter
@Setter
@Accessors(chain = true)
public class UserInfoDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 8779995733781241315L;

    /**
     * 用户信息
     */
    private User user;

    /**
     * 用户角色
     */
    private Set<String> roles;

    /**
     * 角色对应的所有权限
     */
    private Set<String> permissions;
}
